package edu.ncst.baseweb.dao.res;
import edu.ncst.baseweb.common.RequestPage;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "res_record")

public class ResRecord extends RequestPage {
    @TableId
    private Integer id;

    @TableField(value = "resId")//res_info 的ID
    private Integer resId;

    @TableField(value = "tilite_name")//实验室名称
    private String tiliteName;

    @TableField(value = "answer")//回复
    private String answer;

    @TableField(value = "apply_time")//申请时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date applyTime;

    @TableField(value = "stime")//实验开始时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date stime;

    @TableField(value = "etime")//实验结束时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date etime;

    @TableField(value = "user_id")//用户id
    private Integer userId;

    public static final String COL_USERID = "user_id";

    //地点
    private transient String location;
    //发布时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private transient Date releaseTime;
    //状态
    private transient Integer state;


}
